﻿using System;
using System.Text;
using LaunchPad.Core;
using MFToolkit.Net.XBee;

namespace ProgrammableXBeeTest
{
    class Program
    {
        static void Main(string[] args)
        {
            if (!XBeeIO.Instance.IsAvailable)
                XBeeIO.Instance.TryFindXBee("COM9");

            var data = Encoding.ASCII.GetBytes("KRLEDS");

            XBeeIO.Instance.BeginRemoteTx(XBeeAddress64.BroadcastAddress, data, 
                status =>
                    Console.WriteLine("done: {0}", status));

            Console.ReadKey();
        }
    }
}
